

// 附表类(记录标识对应图片备注)
class FuBiao{
    constructor(){
        this.标识列=[];
        this.图片列=[];
        this.备注列=[];
        this.时间列=[];
        this.操作列=[];
        this.len=0;
    }
    附加追加(biaoShi,TuPian,BeiZhu,Time,Jober){
        this.标识列.push(biaoShi);
        this.图片列.push(TuPian);
        this.备注列.push(BeiZhu);
        this.时间列.push(Time);
        this.操作列.push(Jober);
        this.len++;
    }

}

// 操作类,继承附表类(记录标识对应最后操作者的信息)
class Jober extends FuBiao{
    constructor(){
        super();
        this.最后操作='';
    }
    操作追加(BiaoShi,Jober,BeiZhu,Time){
        this.最后操作=Jober;
        this.附加追加(BiaoShi,'',BeiZhu,Time,Jober)
    }
}

// 抄表类(包含附加表类和操作表类的记录)
class ChaoBiao{
    constructor(biaoName){
        this.表名=biaoName;
        this.抄表列=[];
        this.附加表=new FuBiao();
        this.操作表=new Jober();
        this.len=0;
    }
    抄表追加(zhi,jober){
        this.抄表列.push(zhi);
        this.len++;
        this.操作表.操作追加(this.len,jober,'','')
        this.附加表.附加追加(this.len,'','','',jober)
    }
}

// 房间信息类(记录房间面积,房间备注是否带家电,房间图片信息,最后操作者)
class FangJianXingXi{
    constructor(){
        this.面积=''
        this.房间备注=[];
        this.照片信息=new FuBiao();
        this.操作表=new Jober();
    }
}


//用户信息类(记录房主入住个人信息以及余额情况)
class FangZhuXingXi{
    constructor(){
        this.余额=0;
        this.姓名='';
        this.手机=[];
        this.身份证='';
        this.钥匙表=new FuBiao();
        this.备注表=new FuBiao();
        this.操作表=new Jober();
        this.入住时间='';
    }
}


// 房间类(记录房间号码,房间状态,房间价格,水电表,房主,维修,操作)
class FangJian{
    constructor(fanghao){
        this.房号=fanghao;
        this.房间状态='未租';//'已租','未租','维修','自用','损坏','删除'
        this.价格房间='333';
        this.价格单水=3;
        this.价格单电=1;
        this.价格单煤=0;
        this.价格垃圾=0;
        this.价格网费=0;
        this.价格杂费=0;
        this.水表信息=new ChaoBiao('水表信息');
        this.电表信息=new ChaoBiao('电表信息');
        this.煤表信息=new ChaoBiao('煤表信息');
        this.房间信息=new FangJianXingXi();
        this.房主信息=new FangZhuXingXi();
        this.维修备注=new FuBiao();
        this.操作表=new Jober();

    }
}

//出租房类(记录以及管理出租房报表查询修改等操作)
class ChuZuFang extends FangJian{
    constructor(){
        super();
        this.房间表=[];
        this.len=0;
    }
    房间追加(fanghao){
        this.房间表.push(new FangJian());
        this.len++;
        let temp=this.房间表[this.len-1];
        temp.房号=fanghao;
    }

}